package com.srxz.mobilepharmacy.controller;

import com.srxz.mobilepharmacy.entity.MedHouse;
import com.srxz.mobilepharmacy.service.MedHouseService;
import com.srxz.mobilepharmacy.util.back.BackMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigInteger;

@RestController
@RequestMapping("/mphs/medhouse")
public class MedHouseController {
    @Autowired
    private MedHouseService medHouseService;

    @GetMapping("/ag")
    public BackMessage findHousesOfAg(BigInteger aid){
        return medHouseService.findHousesOfAg(aid);
    }

}
